<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>jquery each</title>
	</head>

	<body>
		对js数组的遍历 
		<!-- 引入jquery -->
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script type="text/javascript">
			var arr = [1,2,3,9];
			$.each(arr,function(index,item){
				console.log(index);
				console.log(item);
			})
		</script>
	</body>

</html>